﻿using System.Collections.Generic;
using System.Security.Claims;

namespace Apex.IdentityAuth.JWT
{
    /// <summary>
    /// 定义生成JWT（JSON Web Token）的服务接口
    /// </summary>
    public interface ITokenService
    {
        /// <summary>
        /// 根据指定的声明和JWT选项生成JWT
        /// </summary>
        /// <param name="claims">要包含在JWT中的声明集合</param>
        /// <param name="options">用于生成JWT的配置</param>
        /// <returns>生成的JWT字符串。</returns>
        string BuildToken(IEnumerable<Claim> claims, JWTOptions options);
    }
}
